October 22, 2024
v3 Get Registration Documents
Description:
Returns a list of registration documents in the account.
URI:
https://api.multitel.net/v3/documents
Methods:
GET
Sample Output:
{ "status": { "code": 200, "msg": "" }, "response": [ { "id": "53de71025fe628e401362c28dfa0393d", "first_name": "First Name", "last_name": "Last Name", "phone_number": "12345678901", "id_number": "", "birth_date": "0000-00-00 00:00:00", "company_name": "", "company_reg_number": "", "vat_id": "", "personal_tax_id": "", "description": "", "identity_type": "Personal", "postal_code": "1000", "city": "City", "address": "Address", "signature": null, "date_created": "2023-02-27 18:56:44" }, ] }
Sample Code:
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.multitel.net/v3/documents', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Accept: application/json', 'Authorization: Basic YWRtaW46Vnc0OXBYNk', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;